package com.map.station;

import android.content.Context;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;

public class OptionPreference extends PreferenceActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.xml.optionpref);
	}
	
	protected static boolean setSatellite(Context context) {
		return PreferenceManager.getDefaultSharedPreferences(context)
				.getBoolean("Satellite", false);
	}
	
	protected static boolean setStreetView(Context context) {
		return PreferenceManager.getDefaultSharedPreferences(context)
				.getBoolean("StreetView", false);
	}
	
	protected static boolean setTraffic(Context context) {
		return PreferenceManager.getDefaultSharedPreferences(context)
				.getBoolean("Traffic", false);
	}
}
//98.352616 7.894023